#include "led.h"

#include <mc9s12dp256.h>

void led_open (void) {
  DDRB = 0x01;
 
}

void led_close (void) {
DDRB = 0x00;
}

void led_write(int first, int last)
{
if (first==1)
 PORTB = 0x01;
 else if (first==2)
 PORTB = 0x02;
 else if (first==3)
 PORTB = 0x03;
 else
 PORTB = 0x00;
}
